﻿' LibWowArmory
' by Ronald M. Clifford (roncli@roncli.com)
'
' This source code is released under the GNU Library General Public License (LGPL) Version 2.1.

Namespace roncliProductions.LibWowArmory.Item.Info

    ''' <summary>
    ''' A class that encapsulates a cost token
    ''' </summary>
    ''' <remarks></remarks>
    Public Class TokenCost

        ''' <summary>
        ''' The number of tokens required to buy the item
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Count As Integer

        ''' <summary>
        ''' The filename of the token's icon
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Icon As String

        ''' <summary>
        ''' The item ID of the token
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property ItemID As Integer

        ''' <summary>
        ''' The item that represents the token
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public ReadOnly Property Item As ItemInfo
            Get
                Return New ItemInfo(ItemID)
            End Get
        End Property

        ''' <summary>
        ''' A constructor to create the token
        ''' </summary>
        ''' <param name="intCount"></param>
        ''' <param name="strIcon"></param>
        ''' <param name="intID"></param>
        ''' <remarks></remarks>
        Public Sub New(ByVal intCount As Integer, ByVal strIcon As String, ByVal intID As Integer)
            Count = intCount
            Icon = strIcon
            ItemID = intID
        End Sub
    End Class

End Namespace
